]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
allView: Redisplay on folder changes
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 2 Jul 2019 16:33:07 +0000 (13:33 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 6 Aug 2019 00:20:31 +0000 (21:20 -0300)
Now that redisplaying is a lightweight operation that only
adds and removes what changed, we can not be concerned about
redisplaying on folder changes.

Redisplaying will be necessary when custom order in the app
grid is implemented, in order to update not only which icons
are hidden, but also their position.

Call _redisplay() in AllView when folders change.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/645

js/ui/appDisplay.js

index d222e9610ec6080e86ca19346968e2a949f33c33..b26951e3ca3ab9ffb51b5877fbeef6193b60475a 100644 (file)
@@ -386,7 +386,7 @@ var AllView = class AllView extends BaseAppView {
             if (!icon) {
                 icon = new FolderIcon(id, path, this);
                 icon.connect('name-changed', this._itemNameChanged.bind(this));
-                icon.connect('apps-changed', this._refilterApps.bind(this));
+                icon.connect('apps-changed', this._redisplay.bind(this));
             }
             newApps.push(icon);
             this.folderIcons.push(icon);